ddns-script: removes linefeed which causes 401 err
authorFabian Zimmermann <[email protected]>
Wed, 22 Oct 2025 09:50:57 +0000 (11:50 +0200)
committerFlorian Eckert <[email protected]>
Fri, 24 Oct 2025 07:13:50 +0000 (09:13 +0200)
The linefeed at the end causes ovh-api to return 401 even if the
password is correct.

Fixes #27693

Signed-off-by: Fabian Zimmermann <[email protected]>
net/ddns-scripts/Makefile
net/ddns-scripts/files/usr/lib/ddns/update_ovh_com.sh

index b1132d893f148b9c044fd1539e81e201a467f644..a78f55dd05f12232a1f6123d89a787e3b5e53cb9 100644 (file)
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=ddns-scripts
 PKG_VERSION:=2.8.2
-PKG_RELEASE:=79
+PKG_RELEASE:=80
 
 PKG_LICENSE:=GPL-2.0
 
index 518986859ccf09ea976f3d47c376c842b69e047b..56ac7cce227a9fec1ada0d4bd441cae59c987e38 100644 (file)
@@ -12,7 +12,7 @@
 http_basic_encoding() {
        local user="$1"
        local password="$2"
-       echo "${user}:${password}" | openssl base64 
+       printf "${user}:${password}" | openssl base64 -in /dev/stdin
 }
 
 [ -z "$domain" ] && write_log 14 "Service section not configured correctly! Missing domain name as 'Domain'"